home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1994 November: Tool Chest / Dev.CD Nov 94.toast / New System Software Extensions / OpenDoc A6 / OpenDoc Parts Framework / OPF / Examples / Draw / Include / DrawProxy.h < prev    next >
Encoding:
Text File  |  1994-04-21  |  2.4 KB  |  90 lines  |  [TEXT/MPS ]

  1. //========================================================================================
  2. //
  3. //    File:                DrawProxy.h
  4. //    Release Version:    $ 1.0d1 $
  5. //
  6. //    Author:                Henri Lamiraux
  7. //    Creation Date:        3/28/94
  8. //
  9. //    Copyright:    © 1993, 1994 by Apple Computer, Inc., all rights reserved.
  10. //
  11. //========================================================================================
  12.  
  13. #ifndef DRAWPROXY_H
  14. #define DRAWPROXY_H
  15.  
  16. // ----- Framework Includes -----
  17. #ifndef FWFRMING_H
  18. #include "FWFrming.h"
  19. #endif
  20.  
  21. #ifndef FWPROXY_H
  22. #include "FWProxy.h"
  23. #endif
  24.  
  25. // ----- OpenDoc Includes -----
  26. #ifndef _SHAPE_
  27. #include <Shape.h>
  28. #endif
  29.  
  30. //==============================================================================
  31. // Forward Declaration
  32. //==============================================================================
  33.  
  34. class XMPFrame;
  35. class CProxyShape;
  36. class XMPTransform;
  37. class CDrawPart;
  38.  
  39. //==============================================================================
  40. //    •• class CDrawProxyRun
  41. //==============================================================================
  42.  
  43. class CDrawProxyRun : public FW_CProxyRun
  44. {
  45. //--------------------------------------------------------------------------------
  46. //    • Initialization/Destruction
  47. //
  48. public:
  49.     CDrawProxyRun();
  50.     void InitDrawProxyRun(CDrawPart* drawPart);
  51.     virtual ~CDrawProxyRun();
  52.     
  53. //-------------------------------------------------------------------------------
  54. //    • Inherited API
  55. //
  56. public:
  57.     virtual void                 UsedShapeChanged(XMPFrame* xmpFrame);
  58.     virtual FW_CBaseProxyBorder*     NewProxyBorder();
  59.     
  60.     virtual void                SetSelectState(FW_Boolean state);
  61.     virtual void                 GetFacetExternalTransform(XMPFrame* xmpFrame, XMPTransform* facetTransform);
  62.     
  63. //--------------------------------------------------------------------------------
  64. //    • New API
  65. //
  66. public:
  67.     void                        OffsetProxyFrames(const FW_CPoint& offset);
  68.     void                        PlaceProxyFrames(const FW_CPoint& position);
  69.     void                        ResizeProxyFrames(XMPShape* newShape);
  70.     
  71.     void                         MoveBefore(CDrawProxyRun* before);
  72.     void                         MoveBehind(CDrawProxyRun* behind);
  73.     void                        MoveLast();
  74.     void                        MoveFirst();
  75.  
  76.     void                        SetShape(CProxyShape* shape)
  77.                                     {fShape = shape;}
  78.     CProxyShape*                 GetShape() const
  79.                                     {return fShape;}
  80.     
  81. //--------------------------------------------------------------------------------
  82. //    • Data Members
  83. //--------------------------------------------------------------------------------
  84. private:
  85.     CProxyShape                    *fShape;
  86.     CDrawPart                    *fDrawPart;
  87. };
  88.  
  89. #endif
  90.